import axios from '@/libs/api.request'

export const getRuleList = info => {
  return axios.request({
    url: 'Setting/getRuleList',
    data: info,
    method: 'post'
  })
}

export const addRule = info => {
  return axios.request({
    url: 'Setting/addRule',
    data: info,
    method: 'post'
  })
}

export const putRule = info => {
  return axios.request({
    url: 'Setting/editRule',
    data: info,
    method: 'post'
  })
}

export const delRule = info => {
  return axios.request({
    url: 'Setting/deleteRule',
    data: info,
    method: 'post'
  })
}

export const getRateList = info => {
  return axios.request({
    url: 'rate_setting/getList',
    data: info,
    method: 'post'
  })
}
export const saveRatio = info => {
  return axios.request({
    url: 'rate_setting/edit',
    data: info,
    method: 'post'
  })
}
